package com.jiawei.controller;

import com.jiawei.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : willian fu
 * @date : 2019/12/21
 */
@RestController
public class MenuController {

    @Autowired
    private MenuService menuService;

    /**
     * 查询用户可见菜单
     * @return
     */
    @GetMapping("menus")
    public Object getMenus(){
        return menuService.getMenus();
    }
}
